package com.shiliao.framework.base.annotation;


import com.shiliao.framework.base.ui.BaseActivity;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Created by yjl on 2017/6/20.
 */

@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD})
public @interface YMSubscribe {

    /**
     * 线程模式
     */
    YMThreadMode threadMode() default YMThreadMode.POSTING;

    /**
     * activity 名
     *
     * @return
     */
    Class<?> type() default BaseActivity.class;


}
